package com.wing.productionPlan.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-10-16 14:33
 **/
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pro_product_delivery_order_detail")
public class ProProductDeliveryOrderDetail extends BaseEntity<ProProductDeliveryOrderDetail> implements Serializable {

    /**
     * 提货订单编号
     */
    private String orderNo;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 产品ID
     */
    private Long productDetailId;

    /**
     * 提货数量
     */
    private Integer deliveryNum;

    /**
     * 发货数量 默认0
     */
    private Integer sendNum;

    /**
     * 单位
     */
    private String unitName;

    /**
     * 提货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate deliveryTime;

    /**
     * 提货订单性质
     */
    private String deliveryNature;

    /**
     * 状态
     */
    private String status;

    /**
     * 生产线
     */
    private String productionLine;

}
